package com.itheima.pattern.command.jdk;

// jdk Runnable 命令模式
public class TurnoffThread implements Runnable {

    private Receiver receiver;

    public TurnoffThread(Receiver receiver) {
        this.receiver = receiver;
    }

    public void run() {
        receiver.turnOFF();
    }
}
